{extend name="public/base" /}

{block name="title"}<title>日常奖扣</title>{/block}

{block name="pjax_container"}
<style>
    .col-sm-2{
        width: 23.666667%;
        height: 33px;
        line-height: 40px;
        padding-top: 15px;
    }
    .col-sm-7{
        padding-top: 15px;
    }
    tr>th,
    td {
        text-align: center;
    }

    .btn-group-xs>.btn,
    .btn-xs {
        padding: 5px;

    }

    .content-header>.breadcrumb>li{
        color: #999;
    }
    .content-header>.breadcrumb>.active{
        color: #666;
    }
    .content-header{
        height: 51px;

    }
    .btn-primary{
        background-color: #1890FF;
        color: #fff;
        border: none;
        border-radius: 6px !important;
        padding: 5px 10px;
    }
    .box-primary{
        border-top-color: #ecf0f5 !important;
        border-top-width: 16px;

    }
    .btn-primary:hover{
        background-color: #1890FF;
        color: #fff;
        border: none;
        opacity: .9;
        border-radius: 6px !important;
    }
    .btn-success {
        border-radius: 6px;
        border: none;
        outline: none;
        margin: 5px;
    }
    .delete-one{
        background-color: ff4141 !important;
        margin-left: 15px;
        border-radius: 6px;
    }
    .sreachs{
        background-color: #1890FF;
        color: #fff;
        border: none;
        border-radius: 6px !important;
        margin-left: 15px;
        padding: 7px 15px;
    }

    .form-control{
        width: 90%;
        border-radius: 8px;
    }
    .input-group>div{
        display: flex;
        align-items: center;
        flex-wrap: wrap;

    }
    .btn-danger{
        border: none;
        outline: none;
        padding: 5px 10px;
    }
    .timepicker{
        margin: 10px 5px !important;
    }
    .pagination .active{
        background-color: #1890FF;
    }
    .form-horizontal>a{
        margin: 5px;
    }
    .btn-info{height: 34px;line-height: 34px;}
</style>
<section class="content-header">
    <ol class="breadcrumb">
        <li>积分管理</li>
        <li class="active">个人月份明细</li>
        <li class="active">{$username}({$job_number})-{:date('Ym',$y_m)}</li>
    </ol>
</section>
<section class="content">
    <div class="row" >
        <div class="col-md-12">
            <div class="box box-primary">


                <div class="nav-tabs-custom">

                <ul class="nav nav-tabs" style="position: relative;">
                    <li class='{if condition="input('type')=='rc'"}active{/if}'><a href="{:url('reward_libaray_item',['type'=>'rc','y_m'=>$y_m,'user_id'=>$user_id])}">日常奖扣</a></li>
                    <li class='{if condition="input('type')=='jk'"}active{/if}'><a href="{:url('reward_libaray_item',['type'=>'jk','y_m'=>$y_m,'user_id'=>$user_id])}">奖扣任务</a></li>
                    <li class='{if condition="input('type')=='gd'"}active{/if}'><a href="{:url('reward_libaray_item',['type'=>'gd','y_m'=>$y_m,'user_id'=>$user_id])}">固定积分</a></li>
                    <li class='{if condition="input('type')=='qt'"}active{/if}'><a href="{:url('reward_libaray_item',['type'=>'qt','y_m'=>$y_m,'user_id'=>$user_id])}">其他积分</a></li>
                    <li class="pull-right" style="background-color: #1890FF; border: none;border-radius: 6px;height: 35px;width: 70px;display: flex;justify-content: center;align-content: center;"><a href="{:url('reward_libaray_item_explode',['type'=>input('type'),'y_m'=>$y_m,'user_id'=>input('user_id',0)])}" target="_blank" class="btn btn-info" style="padding: 0;margin-top: 7px; color: #fff;"><i class="glyphicon glyphicon-file"></i> 导出</a></li>
                </ul>

                    {switch name=":input('type','rc')" }
                    {case value="rc"}
                    {include file="integral/reward_libaray/rc"/}
                    {/case}
                    {case value="jk"}
                    {include file="integral/reward_libaray/jk"/}
                    {/case}
                    {case value="gd"}
                    {include file="integral/reward_libaray/gd"/}
                    {/case}
                    {case value="qt"}
                    {include file="integral/reward_libaray/qt"/}
                    {/case}
                    {default /}
                    {/switch}

                    <div class="box-footer clearfix" style="display: flex;justify-content: flex-end;">
                        {if condition="input('type') != 'jk'"}
                            {$list->render()}
                        {/if}
                    </div>
                </div>
            </div>
        </div>
</section>
<script>
</script>
{/block}
